package nciae.db.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

@Data
@TableName("homework")
public class Homework {
    @TableId(type =  IdType.AUTO)
    private Integer id;
    private Integer projectId;
    private String title;
    private Integer userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp endDate;
    private int studentNum;
    private int overNum;
    private int submitNum;
    private String homeworkType;
    private Integer classId;
}
